<template>
	<view>
		<div class="input">
			<input type="text" maxlength="10" v-model="searchContent" placeholder="目的地/关键字" @input="changeSearch" />
		</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				searchContent: ''
			};
		},
		methods: {
			changeSearch(e) {
				console.log(e.detail.value.length);
			}
		}
	}
</script>

<style lang="scss" scoped>
.input {
	width: 690rpx;
	margin: 0 auto;
	height: 56rpx;
	line-height: 56rpx;
	border-radius: 28rpx;
	color: #CCCCCC;
	background: #fff url(../../static/imgs/icons/search-icon.png) no-repeat left 238rpx center;
	background-size: 28rpx 28rpx;
	padding-left: 275rpx;
	box-sizing: border-box;
}
</style>
